package com.ebt.m.wiki.bean;

import java.io.Serializable;

/**
 * @author Allen.li 面积图表配置数据
 */
public class AreaChartConfig implements Serializable {
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;
    private String tag = "AreaChartConfig";
    /**
     * 利益项目图形标题
     */
    String title;
    /**
     * 图形类型
     * 0：面积图, 1：线形图, 2：柱状图;
     */
    int chartType;
    /**
     * 画笔类型
     */
    int strokeType;
    /**
     * 画笔颜色
     */
    String strokeColor;
    int strokeWeight;
    /**
     * 填充颜色
     */
    String fillColor;
    /**
     * 利益项目描述
     */
    String description;
    /**
     * 原文定义
     */
    String itemContent;
    String anchor;
    /**
     * 图层顺序
     */
    int layerIndex;
    /**
     * 列表顺序
     */
    int sequence;
    String recordFile;
    /**
     * 点集合x坐标轴数值
     */
    int[] xIntArray;
    /**
     * 点集合y坐标轴数值
     */
    Object[] yDoubleArray;
    /**
     * 该面积图是否可见
     */
    private boolean isShow;
    private String fieldName;

    public int getMaxInsuredAge() {
        return maxInsuredAge;
    }

    public void setMaxInsuredAge(int maxInsuredAge) {
        this.maxInsuredAge = maxInsuredAge;
    }

    private int maxInsuredAge;
    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public AreaChartConfig(String title, int chartType, int strokeType,
                           String strokeColor, int strokeWeight, String fillColor,
                           String description, String itemContent, String anchor,
                           int layerIndex, int sequence, String recordFile, int[] xIntArray,
                           Object[] yDoubleArray) {
        this.title = title;
        this.chartType = chartType;
        this.strokeType = strokeType;
        this.strokeColor = strokeColor;
        this.strokeWeight = strokeWeight;
        this.fillColor = fillColor;
        this.description = description;
        this.itemContent = itemContent;
        this.anchor = anchor;
        this.layerIndex = layerIndex;
        this.sequence = sequence;
        this.recordFile = recordFile;
        this.xIntArray = xIntArray;
        this.yDoubleArray = yDoubleArray;
        this.isShow = true;//默认显示
    }

    public AreaChartConfig() {

    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getChartType() {
        return chartType;
    }

    public void setChartType(int chartType) {
        this.chartType = chartType;
    }

    public int getStrokeType() {
        return strokeType;
    }

    public void setStrokeType(int strokeType) {
        this.strokeType = strokeType;
    }

    public String getStrokeColor() {
        return strokeColor;
    }

    public void setStrokeColor(String strokeColor) {
        this.strokeColor = strokeColor;
    }

    public int getStrokeWeight() {
        return strokeWeight;
    }

    public void setStrokeWeight(int strokeWeight) {
        this.strokeWeight = strokeWeight;
    }

    public String getFillColor() {
        return fillColor;
    }

    public void setFillColor(String fillColor) {
        this.fillColor = fillColor;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getItemContent() {
        return itemContent;
    }

    public void setItemContent(String itemContent) {
        this.itemContent = itemContent;
    }

    public String getAnchor() {
        return anchor;
    }

    public void setAnchor(String anchor) {
        this.anchor = anchor;
    }

    public int getLayerIndex() {
        return layerIndex;
    }

    public void setLayerIndex(int layerIndex) {
        this.layerIndex = layerIndex;
    }

    public int getSequence() {
        return sequence;
    }

    public void setSequence(int sequence) {
        this.sequence = sequence;
    }

    public String getRecordFile() {
        return recordFile;
    }

    public void setRecordFile(String recordFile) {
        this.recordFile = recordFile;
    }

    public int[] getxIntArray() {
        return xIntArray;
    }

    public void setxIntArray(int[] xIntArray) {
        this.xIntArray = xIntArray;
    }

    public Object[] getyDoubleArray() {
        return yDoubleArray;
    }

    public void setyDoubleArray(Object[] yDoubleArray) {
        this.yDoubleArray = yDoubleArray;
    }

    public boolean isShow() {
        return isShow;
    }

    public void setShow(boolean isShow) {
        this.isShow = isShow;
//		Log.i(tag,this.title+" isShow is changed into "+isShow);
    }

}
